# 使用官方Nginx镜像作为基础镜像
FROM nginx

# 将dist目录下的文件复制到容器中的/usr/share/nginx/html目录下

RUN mkdir -p /opt/http/web

COPY ./nginx.conf /etc/nginx/conf.d/default.conf

COPY ./dist/ /opt/http/web/

# 暴露80端口
EXPOSE 80
